{% load static %}
{% load bootstrap3 %}



<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/static/ico/book-admin.png">

    {% block title%}
    <title>Starter Template for Bootstrap</title>
    {% endblock %}

    <!-- Bootstrap core CSS -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/static/css/start-template/start-template.css" rel="stylesheet">
  </head>

  <body>

    <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
      <a class="navbar-brand" href="/books-admin/">图书管理</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>

      <div class="collapse navbar-collapse" id="navbarsExampleDefault">
        <ul class="navbar-nav mr-auto">

          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="/" id="dropdown_book" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">图书管理</a>
              <div class="dropdown-menu" aria-labelledby="dropdown_book">
                <a class="dropdown-item" href="/books-admin/all_books/">全部图书</a>

              </div>

          </li>

          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="/404/" id="dropdown_lend" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">借还信息</a>
              <div class="dropdown-menu" aria-labelledby="dropdown_lend">
                <a class="dropdown-item" href="/books-admin/all_lend_list/">借还总览</a>
                <a class="dropdown-item" href="/books-admin/borrow_list/">借阅流水</a>
                <a class="dropdown-item" href="/books-admin/return_list/">归还流水</a>
              </div>
          </li>


          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="/404/" id="dropdown_self" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">个人信息</a>
              <div class="dropdown-menu" aria-labelledby="dropdown_self">
                  <a class="dropdown-item" href="{% url 'books_admin_check_self_info' %}">查看</a>
                  <a class="dropdown-item" href="/books-admin/change_pwd/">修改</a>
              </div>
          </li>



        </ul>
        <form class="form-inline my-2 my-lg-0">
          <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
          <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
        </form>
      </div>
    </nav>



    <main role="main" class="container">

      {% block starter-template %}
          <div class="starter-template">
      {% block main_text %}
        <h1>Bootstrap starter template</h1>
        <p class="lead">Use this document as a way to quickly start any new project.<br> All you get is this text and a mostly barebones HTML document.</p>
      {% endblock %}
      </div>
      {% endblock %}

      {% block row %}
        <!-- 这里用来编辑显示图书的信息 -->
      {% endblock %}

      {% block card %}

      {% endblock %}

      {% block main %}
      {% endblock %}

    </main><!-- /.container -->

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
    <script src="/static/js/bootstrap.min.js"></script>
  </body>
</html>